package delete;

import java.io.File;

public class Delete {
	public static void main(String args[]) {
		File file = new File(
				"F:\\eclipse\\workspace\\com.jmetal\\src\\main\\java\\jmetal");
		delete(file);
	}

	public static void delete(File f) {
		for (File file : f.listFiles()) {
			if (file.isDirectory())
				delete(file);
			else if (file.getName().startsWith(".")) {
				file.delete();
			}
		}

	}
}
